

<?php
require_once('../connections/connect.php');
//$action = $_POST['action'];
$branch_id = $_POST['BRANCH_ID'];
$zone_id = $_POST['ZONE_ID'];

$action =  TRUE;
//$branch_id = "05";
//$zone_id = "01";


mysql_select_db($database_connect, $connect);
$query_subType = "SELECT * FROM DMA_list WHERE BRANCH='$branch_id' and ZONE='$zone_id' group by BLOCK";
$subType = mysql_query($query_subType, $connect) or die(mysql_error());		
echo '<option value="" selected="selected" > ---- เลือก Block ---- </option>';
while($row_q = mysql_fetch_array($subType)){
  $id = $row_q["BLOCK"];
  //$name = $row_q["zone_name"];
    echo"<option value='$id'>$id</option>";
  //echo "$id";
};

?>

